import request from '@/utils/request'


// 查询#订单详情信息详细
export function getInordergoodslist(orderCode) {
  return request({
    url: '/member/inorderlist/goods/' + orderCode,
    method: 'get'
  })
}


// 查询#销售单管理列表
export function listInorderlist(query) {
  return request({
    url: '/member/inorderlist/list',
    method: 'get',
    params: query
  })
}

// 查询#销售单管理详细
export function getInorderlist(orderCode) {
  return request({
    url: '/member/inorderlist/order/' + orderCode,
    method: 'get'
  })
}

// 新增#销售单管理
export function addInorderlist(data) {
  return request({
    url: '/member/inorderlist/add',
    method: 'post',
    data: data
  })
}

// 修改#销售单管理
export function updateInorderlist(data) {
  return request({
    url: '/member/inorderlist',
    method: 'put',
    data: data
  })
}

// 删除#销售单管理
export function delInorderlist(orderCode) {
  return request({
    url: '/member/inorderlist/' + orderCode,
    method: 'delete'
  })
}

// 修改商品库存
export function changeGoodsStock(data) {
  return request({
    url: '/member/inorderlist/changeGoodsStock',
    method: 'post',
    data: data
  })
}
//修改订单步骤
export function updateOrderStepToTwo(orderCode) {
  return request({
    url: '/member/inorderlist/ordersteptotwo/' + orderCode,
    method: 'get'
  })
}
export function updateOrderStepToThree(orderCode) {
  return request({
    url: '/member/inorderlist/ordersteptothree/' + orderCode,
    method: 'get'
  })
}
export function updateOrderStepToFour(orderCode) {
  return request({
    url: '/member/inorderlist/ordersteptofour/' + orderCode,
    method: 'get'
  })
}
export function updateOrderStepToFive(orderCode) {
  return request({
    url: '/member/inorderlist/ordersteptofive/' + orderCode,
    method: 'get'
  })
}
export function updateOrderStepToSix(orderCode) {
  return request({
    url: '/member/inorderlist/ordersteptosix/' + orderCode,
    method: 'get'
  })
}
export function updateOrderStepToSeven(orderCode) {
  return request({
    url: '/member/inorderlist/ordersteptoseven/' + orderCode,
    method: 'get'
  })
}
